#ifndef __MINIDB_H__
#define __MINIDB_H__

#ifdef __cplusplus
extern "C" {
#endif

#define DB_DEFAULT_PATH			("d:\\mini.db")
#define ITEM_INIT_COUNT (4)
#define DB_VERSION		(0x01020304)

int minidb_write(int rid, int idx, char* buf, int size);

//ret: readed char count
int minidb_read(int rid, int idx, char** buf, int* size);

int mini_init(const char* db_full_path);

int minidb_ls();

#ifdef __cplusplus
}
#endif
#endif 